<?php
if(isset($_GET['token'])){
    $token = $_GET['token'];  
    $key = "SSE_".$token;
    $redis = new Redis();
    $redis->connect('127.0.0.1', 6379);
    //$redis->auth();
    $data = json_encode([
            'command' => 'ask',
            'time' => time(),
    ],JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
    $redis->rPush($key,$data); 
}
echo "{}";

